package com.example.delivery.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.delivery.pojo.Address;
import com.example.delivery.service.AddressService;
import com.example.delivery.mapper.AddressMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author huber
* @description 针对表【address】的数据库操作Service实现
* @createDate 2025-03-18 13:29:36
*/
@Service
public class AddressServiceImpl extends ServiceImpl<AddressMapper, Address>
    implements AddressService{
    @Autowired
    private AddressMapper addressMapper;
    @Override
    public void add(Address address) {
        addressMapper.insert(address);
    }

    @Override
    public Address findById(Integer id) {
        return addressMapper.selectById(id);
    }
}




